#ifndef VIDIOPLAYER_H
#define VIDIOPLAYER_H

#include <QWidget>
#include<QMediaPlayer>
namespace Ui {
class Vidioplayer;
}

class Vidioplayer : public QWidget
{
    Q_OBJECT

public:
    explicit Vidioplayer(QWidget *parent = nullptr);
    ~Vidioplayer();


private slots:
    void on_openbtn_clicked();
    void setvalue(qint64 totalDuration, qint64 currentPosition);
    void on_startbtn_clicked();

    void on_overbtn_clicked();

    void on_pushButton_clicked();
signals:
    void showMenu();
private:
    Ui::Vidioplayer *ui;
    QMediaPlayer* pPlayer;
    qint64 totalDuration = 0;
    qint64 currentPosition = 0;
    QVideoWidget *videoWidget = nullptr;

};

#endif // VIDIOPLAYER_H
